package com.course.app.transformer;

import com.course.app.api.data.ResourceDTO;
import com.course.app.api.data.TaskAudioDTO;
import com.course.app.api.data.TaskStoryDTO;
import com.course.app.api.data.TaskVideoDTO;

import java.util.Map;

/**
 * Created by Justin on 2017/5/30.
 */
public class ResourceTransformer {

    public static ResourceDTO toDTO(Map<Integer, TaskAudioDTO> audioDTOMap,
                                    Map<Integer, TaskVideoDTO> videoDTOMap,
                                    Map<Integer, TaskStoryDTO> storyDTOMap) {
        ResourceDTO resourceDTO = new ResourceDTO();
        resourceDTO.setAudioMap(audioDTOMap);
        resourceDTO.setVideoMap(videoDTOMap);
        resourceDTO.setStoryMap(storyDTOMap);
        return resourceDTO;
    }
}
